/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-03-08     tyustli      first implementation
 */

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
    char test_str[100];
    int str_len;
    int cnt = 0;

    memcpy(test_str, "Hello tyustli", 20);
    str_len = strlen(test_str);

    for (int i = 0; i < str_len; i++)
    {
        if (test_str[i] == 't')
            cnt++;
    }

    printf("%d\r\n", cnt);

    return 0;
}

/********************** end of file **************************/
